package ywj;
import java.lang.Long;
import java.util.*;

public class Web {
    private String url;
    private Long visitnumber;
    private String date;

    public Web() {
    }

    public Web(String url, Long visitnumber) {
        this.url = url;
        this.visitnumber = visitnumber;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getVisitnumber() {
        return visitnumber;
    }

    public void setVisitnumber(Long visitnumber) {
        this.visitnumber = visitnumber;
    }

    public String getDate() {
        return date;
    }

    public void showDate(){
        if(date==null){
            System.out.println("该网站无访问记录");
        }
        else{
            System.out.println("该页面最后访问时间为："+getDate());
        }
    }


    public void setDate(String date) {
        this.date = date;
    }
}


